package com.order.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.order.dao.orderlistDao;
import com.order.po.orderlist;
import com.order.service.orderlistService;
@Service
@Transactional
public class orderlistServiceImpl implements orderlistService {
	 @Autowired
	   private orderlistDao orderlistDao;
	@Override
	public List<orderlist> getAllorderlist() {
		// TODO Auto-generated method stub
		return orderlistDao.getAllorderlist();
	}
	@Override
	public void insert_order(orderlist g) {
		// TODO Auto-generated method stub
		orderlistDao.insert_order(g);
	}
	@Override
	public void delete_order(String order_id) {
		// TODO Auto-generated method stub
		orderlistDao.delete_order(order_id);
	}
	@Override
	public List<orderlist> get_orderlistbypar(String parameter, String parameter1, String parameter2) {
		// TODO Auto-generated method stub
		return orderlistDao.get_orderlistbypar(parameter, parameter1, parameter2);
	}
	@Override
	public List<orderlist> get_orderlistbyuser(String parameter, String parameter1, String parameter2) {
		// TODO Auto-generated method stub
		return orderlistDao.get_orderlistbyuser(parameter, parameter1, parameter2);
	}
	@Override
	public void update_order(String parameter,String parameter1) {
		// TODO Auto-generated method stub
		orderlistDao.update_order(parameter,parameter1);
	}
	@Override
	public void update_orderhave(String parameter) {
		// TODO Auto-generated method stub
		orderlistDao.update_orderhave(parameter);
	}
	@Override
	public void update_paytype(String parameter) {
		// TODO Auto-generated method stub
		orderlistDao.update_paytype(parameter);
	}

}
